package com.special.threademo.jvm.classLoader;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/23  17:42
 * key 用 null 代替根类加载器
 */
public class ClassLoaderAnalysisDemo {
    public static void main(String[] args) {
        ClassLoader classLoader = ClassLoader.getSystemClassLoader();
        System.out.println(classLoader);
        while (null != classLoader) {
            classLoader = classLoader.getParent();
            System.out.println(classLoader);
        }
    }
}
